﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PC.PickleJar.Configuration
{
	public class ValidatorElementCollection : ConfigurationElementCollection
	{
		protected override ConfigurationElement CreateNewElement()
		{
			return new ValidatorElement();
		}

		protected override object GetElementKey(ConfigurationElement element)
		{
			return ((ValidatorElement)element).Type;
		}

		public ValidatorElement this[int index]
		{
			get
			{
				return base.BaseGet(index) as ValidatorElement;
			}
		}
	}
}
